package com.wn.potal.controller;

import com.wn.potal.feign.UserFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yellow Docter
 * @date 2022 -08-30
 * @desc
 */
@RestController
@RequestMapping("portal")
public class PorTalController {

    @Autowired
    private UserFeignClient userFeignClient;

    @GetMapping("{id}")
    public String findUserById(@PathVariable Integer id){
        String res = userFeignClient.findUserById(id);
        return res;

    }
}
